package com.sinosoft.perfect.system._worksite.dao;

import java.sql.SQLException;
import java.util.List;

import com.sinosoft.perfect.common.system.BaseSqlSessionDaoSupport;
import com.sinosoft.perfect.system._.po.TWorksite;
import com.sinosoft.perfect.system._worksite.MapperSystemWorksite;

public class WorksiteDAOImpl extends BaseSqlSessionDaoSupport implements IWorksiteDAO {

	private MapperSystemWorksite getMapperSystemWorksite() {
		return getSqlSession().getMapper(MapperSystemWorksite.class);
	}

	@Override
	public int deleteTWorksiteByPK(TWorksite tworksite) throws SQLException {
		return getMapperSystemWorksite().deleteTWorksiteByPK(tworksite);
	}

	@Override
	public Object insertByTWorksite(TWorksite tworksite) throws SQLException {
		return getMapperSystemWorksite().insertByTWorksite(tworksite);
	}

	@Override
	public List<TWorksite> selectByTWorksite(TWorksite tworksite) throws SQLException {
		return getMapperSystemWorksite().selectByTWorksite(tworksite);
	}

	@Override
	public int updateTWorksite(TWorksite tworksite) throws SQLException {
		return getMapperSystemWorksite().updateTWorksite(tworksite);
	}

	@Override
	public int updateTUnitForClearWorksiteId(String worksiteId) throws SQLException {
		return getMapperSystemWorksite().updateTUnitForClearWorksiteId(worksiteId);
	}

}
